define([], function() {
	
	var graph = new joint.dia.Graph;
    var paper = new joint.dia.Paper({
        el: $('#paper'),
        width: 600,
        height: 200,
        model: graph,
        gridSize: 1
    });

    var box1 = new joint.shapes.basic.Rect({
        position: { x: 100, y: 75 },
        size: { width: 100, height: 50 },
        attrs: { rect: { fill: 'green' }, text: { text: 'box1', fill: 'white' } }
    });

    var box2 = box1.clone();
    box2.attr("text/text","box2")
    box2.translate(300);

    var link = new joint.dia.Link({
        source: { id: box1.id },
        target: { id: box2.id }
    });

    graph.addCells([box1, box2, link]);
});
